package com.example.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author wmj
 * @since 2025-01-12
 */
@Getter
@Setter
@Data
public class Staff implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "sid", type = IdType.AUTO)
    private Integer sid;

    private String sname;

    private String sex;

    private Integer sage;

    private String addr;

    private Integer did;

    @TableField(exist = false)   // 说明不存在此字段
    private String dname;

    // 逻辑删除字段
    @TableLogic
    @TableField(exist = false)   // 说明不存在此字段
    private Integer deleted;
}
